﻿// Copyright (c) MichaConrad. All rights reserved. See License.txt in the project root for license information.

namespace LinqToLdapExtensions.Tests.Integration
{
    using System.Diagnostics.CodeAnalysis;
    using LinqToLdapExtensions.Domain;

    [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented", Justification = "Reviewed. Suppression is OK here.")]
    public class IntegrationTestHelper
    {
        public static IDirectoryContextFactory SetupFactory(ScopeState scopeState)
        {
            return new DirectoryContextFactory(scopeState, DomainSetup.SetupConfiguration());
        }

        public static DirectoryContextUnitOfWork SetupUnitOfWork(ScopeState scopeState)
        {
            var factory = SetupFactory(scopeState);
            return new DirectoryContextUnitOfWork(factory);
        }
    }
}
